package mx.collections;

extern class Sort extends flash.events.EventDispatcher {
	var compareFunction : Dynamic;
	var fields : Array<Dynamic>;
	var unique : Bool;
	function new() : Void;
	function findItem(items : Array<Dynamic>, values : Dynamic, mode : String, ?returnInsertionIndex : Bool, ?compareFunction : Dynamic) : Int;
	function propertyAffectsSort(property : String) : Bool;
	function reverse() : Void;
	function sort(items : Array<Dynamic>) : Void;
	static var ANY_INDEX_MODE : String;
	static var FIRST_INDEX_MODE : String;
	static var LAST_INDEX_MODE : String;
}
